from Base.Base import Base
from selenium.webdriver.common.by import By


class Page(Base):
    url='http://211.159.148.205:7009/roncoo-pay-web-boss/login'
    username=(By.NAME,'loginName')
    password=(By.NAME,'roncooPwd')
    sub=(By.CLASS_NAME,'sub')

    def get_url(self):
        self.get(self.url)

    def send_username(self):
        self.send_keys(self.username,'admin')
    def send_password(self):
        self.send_keys(self.password,'123456')
    def click_sub(self):
        self.click(self.sub)
        self.time(5)